package com.sxt.bus.vo;

import com.sxt.bus.entity.Sales;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
public class SalesVo extends Sales {

    private Integer page = 1;

    private Integer limit = 10;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public SalesVo() {
    }

    public SalesVo(Integer id, Integer customerid, String paytype, Date salestime, String operateperson, Integer number, String remark, Double saleprice, Integer goodsid, Integer page, Integer limit, Date startTime, Date endTime) {
        super(id, customerid, paytype, salestime, operateperson, number, remark, saleprice, goodsid);
        this.page = page;
        this.limit = limit;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public SalesVo(Integer id, Integer customerid, String paytype, Date salestime, String operateperson, Integer number, String remark, Double saleprice, Integer goodsid, String customername, String goodsname, String size, Integer page, Integer limit, Date startTime, Date endTime) {
        super(id, customerid, paytype, salestime, operateperson, number, remark, saleprice, goodsid, customername, goodsname, size);
        this.page = page;
        this.limit = limit;
        this.startTime = startTime;
        this.endTime = endTime;
    }
}
